GetMovieBoundsRgn
TheGetMovieBoundsRgn
function allows your application to determine a movie's boundary region.
pascal RgnHandle GetMovieBoundsRgn (Movie theMovie);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).DESCRIPTION
The movie boundary region encloses all of a movie's tracks after the union of the track clip and the track matrix has been applied to all the movie's tracks (but not to the movie itself). This region is in the movie's display coordinate system.The Movie Toolbox derives the boundary region only from enabled tracks, and only from those tracks that are used in the current display mode (that is, movie or preview). The boundary region is valid for the current movie time.
The
GetMovieBoundsRgn
function allocates the region and returns a handle to the region. Your application must dispose of this region when you are done with it. If the movie does not have a spatial representation at the current time, the function returns an empty region. If the function could not satisfy your request, it sets the returned handle tonil
.ERROR CODES
Memory Manager errors
invalidMovie -2010 This movie is corrupted or invalid